<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    {if $row.tmp_name}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>项目名称:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.name}
            <input class="form-control" id="name" name="row[name]" type="text" disabled placeholder="请填写项目名称" value="{$row.name}" data-rule="required">
            {/if}
            {if $row.tmp_name && $row.name}
            <span class="text-red"> 修改为：</span>
            {/if}
            {if $row.tmp_name}
            <input class="form-control " disabled value="{$row.tmp_name}">
            {/if}
        </div>
    </div>
    {/if}
    {if $row.tmp_investment_total}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>总投资(亿):</label>
        <div class="col-xs-12 col-sm-6">
            <div class="input-group">
                {if $row.investment_total}
                <input class="form-control"  type="text" disabled value="{$row.investment_total}">
                <span class="text-red"> 修改为：</span>
                {/if}
                <input class="form-control " disabled value="{$row.tmp_investment_total}">
            </div>
        </div>
    </div>
    {/if}
    {if $row.tmp_summary}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>项目简介:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.summary}
            <textarea  class="form-control "  rows="5" cols="50" disabled>{$row.summary}</textarea>
            <span class="text-red"> 修改为：</span>
            {/if}
            <textarea  class="form-control "  rows="5" cols="50" disabled>{$row.tmp_summary}</textarea>
        </div>
    </div>
    {/if}

    {if $row.tmp_progression}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>进展情况:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.progression}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.progression}</textarea>
            <span class="text-red"> 修改为：</span>
            {/if}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.tmp_progression}</textarea>
        </div>
    </div>
    {/if}


    {if $row.tmp_next_measure}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>下一步措施:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.next_measure}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.next_measure}</textarea>
            <span class="text-red"> 修改为：</span>
            {/if}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.tmp_next_measure}</textarea>
        </div>
    </div>
    {/if}
    {if $row.tmp_problem}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>存在问题:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.problem}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.problem}</textarea>
            <span class="text-red"> 修改为：</span>
            {/if}
            <textarea  class="form-control " rows="5" cols="50" disabled>{$row.tmp_problem}</textarea>
        </div>
    </div>
    {/if}
    {if $row.tmp_access_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">计划准入时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.access_time}
            <input class="form-control "  type="text" value="{$row.access_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_access_time_text}">
        </div>
    </div>
    {/if}
    {if $row.tmp_sign_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sign_time')}:</label>
        {if $row.sign_time}
        <div class="col-xs-12 col-sm-8">
            <input id="c-" class="form-control " disabled type="text" value="{$row.sign_time_text}">
        </div>
        <span class="text-red"> 修改为：</span>
        {/if}
        <div class="col-xs-12 col-sm-8">
            <input id="c-" class="form-control " disabled type="text" value="{$row.tmp_sign_time_text}">
        </div>
    </div>
    {/if}
    {if $row.tmp_investment_area}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>投资方地区:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.investment_area}
            <input class="form-control "  type="text" value="{$row.investment_area}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control"  type="text" disabled value="{$row.tmp_investment_area}">

        </div>
    </div>
    {/if}

    {if $row.tmp_receive_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>接洽时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.receive_time}
            <input class="form-control "  type="text" value="{$row.receive_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_receive_time_text}">

        </div>
    </div>
    {/if}


    {if $row.tmp_chargedep_ids}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>责任单位:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.chargedep_ids}
            <input class="form-control "  type="text" value="{$row.chargedep_names}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_chargedep_names}">

        </div>
    </div>
    {/if}

    {if $row.tmp_settle_street_ids}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>落户街道:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.settle_street_ids}
            <input class="form-control "  type="text" value="{$row.settle_street_names}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_settle_street_names}">

        </div>
    </div>
    {/if}


    {if $row.tmp_leader_ids}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>区领导:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.leader_ids}
            <input class="form-control "  type="text" value="{$row.leader_names}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_leader_names}">

        </div>
    </div>
    {/if}


    {if $row.tmp_centraloffice_id}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>责任科室:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.centraloffice_id}
            <input class="form-control "  type="text" value="{$row.centraloffice_name}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_centraloffice_name}">

        </div>
    </div>
    {/if}
    {if $row.tmp_contact_name}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>科室联系人:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.contact_name}
            <input class="form-control "  type="text" value="{$row.contact_name}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control"  type="text" disabled value="{$row.tmp_contact_name}">

        </div>
    </div>
    {/if}


    {if $row.tmp_state}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>进展状态:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.state}
            <input class="form-control "  type="text" value="{$row.state}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_state}">

        </div>
    </div>
    {/if}


    {if $row.tmp_state == '终止' && $row.tmp_stop_reason}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>终止原因:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.stop_reason}
            <input class="form-control "  type="text" value="{$row.stop_reason}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_stop_reason}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '终止' && $row.tmp_stop_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>终止时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.stop_time}
            <input class="form-control "  type="text" value="{$row.stop_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_stop_time_text}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '框架' && $row.tmp_framework_agreement_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>框架协议时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.framework_agreement_time}
            <input class="form-control "  type="text" value="{$row.framework_agreement_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_framework_agreement_time_text}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '正式' && $row.tmp_invesment_agreement_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>正式协议时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.invesment_agreement_time}
            <input class="form-control "  type="text" value="{$row.invesment_agreement_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_invesment_agreement_time_text}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '注册' && $row.tmp_register_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>注册时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.register_time}
            <input class="form-control "  type="text" value="{$row.register_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_register_time_text}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '开工' && $row.tmp_start_construction_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>开工时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.start_construction_time}
            <input class="form-control "  type="text" value="{$row.start_construction_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_start_construction_time_text}">

        </div>
    </div>
    {/if}

    {if $row.tmp_state == '运营' && $row.tmp_operation_time}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color: red;">*</span>开工时间:</label>
        <div class="col-xs-12 col-sm-6">
            {if $row.operation_time}
            <input class="form-control "  type="text" value="{$row.operation_time_text}" disabled>
            <span class="text-red"> 修改为：</span>
            {/if}
            <input class="form-control "  type="text" disabled value="{$row.tmp_operation_time_text}">

        </div>
    </div>
    {/if}

    {if $progress}
    <div class="panel panel-success" style="border-collapse: collapse;text-align: center;margin:30px auto;width:90%">
        <div class="panel-heading">
            <h3 class="panel-title">待审核进展情况</h3>
        </div>
        <table class="table table-bordered text-center">
            <tr>
                <th>进展详情</th>
                <th>存在问题</th>
                <th>下一步措施</th>
                <th>进展时间</th>
            </tr>
            {volist name='progress' id='vo'}
            <tr {eq name="vo.id" value="$row.id"}class="text-danger"{/eq}>
            <td class="text-center" style="width: 35%">{$vo.content}</td>
            <td class="text-center" style="width: 20%">{$vo.problem}</td>
            <td class="text-center" style="width: 30%">{$vo.next_measure}</td>
            <td class="text-center">{$vo.progress_time_text}</td>
            </tr>
            {/volist}
        </table>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" data-ids="{$row.id}" id="btn-pass" class="btn btn-success btn-embossed btn-pass">通过</button>
            <button type="button" data-ids="{$row.id}" id="btn-reject" class="btn btn-danger btn-embossed btn-reject">驳回</button>
        </div>
    </div>
</form>
<table class="table table-bordered text-center">
    <tr>
        <th>接洽时间</th>
        <th>接洽领导</th>
        <th>编辑</th>
    </tr>
    {volist name='list' id='vo'}
    <tr {eq name="vo.id" value="$row.id"}class="text-danger"{/eq}>
    <td class="text-center">{$vo.receive_time_text}</td>
    <td class="text-center">{$vo.leader_names}</td>
    {if $vo.status == 100}
    <td class="text-center"><a href="{:url('checkedit','ids='.$vo['id'])}" class="btn-danger btn-sm" >待审核</a></td>
    {else}
    <td class="text-center">-</td>
    {/if}
    </tr>
    {/volist}
</table>